package com.example.cp.adapter;

import com.bumptech.glide.Glide;
import com.example.cp.entivity.BannerResult;
import com.youth.banner.adapter.BannerImageAdapter;
import com.youth.banner.holder.BannerImageHolder;

import java.util.List;

public class BannerAdapter extends BannerImageAdapter<BannerResult.DataBean> {
    public BannerAdapter(List<BannerResult.DataBean> mData) {
        super(mData);
    }

    @Override
    public void onBindView(BannerImageHolder holder, BannerResult.DataBean data, int position, int size) {
        Glide.with(holder.imageView).load(data.getImagePath()).into(holder.imageView);
    }
}
